.slidebar2 {
    @extend .shadow;
    @include animate();
    position: fixed;
    top: 0;
    left: -300px;
    height: 100%;
    z-index: 49;
    width: 260px;

    &>.slidebar2-tool {
        // display: block;
        cursor: pointer;
        position: relative;
        transition: left .3s;

        &:hover {
            // background-color: #fff;
            // color: rgba(44, 62, 80, 1) !important;
        }

        & #slidebar2_in {
            display: none;
        }

        & #slidebar2_out {
            position: fixed;
            top: 0;
            left: 0;

            // transition: left .3s;
            &>svg {
                padding: 4px;
                margin: 8px;
                border: solid 1px $divider_b;
            }
        }
    }

    .menu>li>a {
        padding-left: 32px !important;
    }
}

.slidebar2-hover-b a {
    color: #ccc !important;
}

.slidebar2-hover-b a:hover {
    // color: inherit !important;
}

.slidebar2-box-normalize {
    & .mark-b {
        display: none; // opacity: 0;
    }
}

.slidebar2-box-normalize {
    &>input[type="checkbox"]:checked+.slidebar2 {
        position: relative;
        left: 0px !important;

        &>.slidebar2-tool {
            text-align: right;
            color: #fff;

            & #slidebar2_in {
                display: inline;
            }

            & #slidebar2_out {
                // display: none;
                // position: relative;
                // left: -100%;
                position: absolute;
                left: 100%;
            }
        }
    }

    &>input[type="checkbox"]:checked+.slidebar2+.mark-b {
        display: block;
        @include animate_name(slideIn);
        @include animate_duration(0.6s);
    }

    details summary {
        cursor: pointer; // width: 256px;
        outline: none !important;

        &:focus {
            outline: none !important;
        }
    }

    a {
        cursor: pointer;
        box-sizing: border-box;
        width: 100%;
    }
}

// @media (max-width: 768px) {
//   .slidebar2 {
//     display: none;
//   }
// }
@media (max-width:1400px) {
    .slidebar2 {
        width: 230px;

        .menu {
            margin: 0;
        }

        summary {
            padding: 12px;
        }

        .menu>li>a {
            padding-left: 24px !important;
            line-height: 42px;
        }

        .logo-icon {
            width: 150px;
        }
    }
}

@keyframes slideIn {
    0% {
        // display: block !important;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1; // background-color: blue;
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        // display: none !important;
        opacity: 0; // background-color: blue;
    }
}


.iframe {
    flex-wrap: nowrap;
    height: 100%;
}

.view {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.content {
    transition: all .3s;
}

.h56 {
    height: 56px;
}

.menu-active {
    background-color: #666;
    // color: inherit !important;
}
